package com.ayh.campusfun.service;

import com.ayh.campusfun.common.service.BaseService;
import com.ayh.campusfun.dto.LoginForOtherDTO;
import com.ayh.campusfun.dto.RegisterDTO;
import com.ayh.campusfun.entity.Users;

import java.util.List;
import java.util.Map;

/**
 * 用户表(Users)表服务接口
 *
 * @author ayh
 * @since 2021-03-19 18:20:32
 */
public interface UsersService extends BaseService<Users> {

    Map<String, Object> login(String account, String password, String captchaKey, String captchaCode);

    Long register(RegisterDTO registerDTO);

    String getAuthCode(String email);

    String refreshAuthCode(String email, String codeKey);

    Map<String, Object> loginForOther(LoginForOtherDTO loginForOtherDTO);

    List<Users> queryUserByParam(Map<String,Object> map);

    Users queryUserByUid(String uid);

    void updateUserInfoById(Users users);

}
